package com.ywk.miaohsa.vo;


import com.ywk.miaohsa.validator.IsMobile;

import javax.validation.constraints.NotNull;

public class UserInfoVo {
    @NotNull
    private String name;

    @NotNull
    @IsMobile(required = true)//required参数默认为true，可以不填
    private String phoneNum;
    @NotNull
    private String address;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPhoneNum() {
        return phoneNum;
    }

    public void setPhoneNum(String phoneNum) {
        this.phoneNum = phoneNum;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }
}
